package com.shop.entity;

import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.math.BigDecimal;

@Data
@NoArgsConstructor
@AllArgsConstructor
public class SkuDTO {
    @JsonProperty("sku_id") // 映射JSON的sku_id字段
    private Long skuId;

    @JsonProperty("sku_code")
    private String skuCode;

    @JsonProperty("sku_price")
    private BigDecimal skuPrice;

    @JsonProperty("sku_stock")
    private Integer skuStock;

    // Getter/Setter
}